package com.example.agriculyural.State;

import com.example.agriculyural.FactoryMethod.AgriculturalMachine;
import com.example.agriculyural.State.MachineState;

public class WorkingState implements MachineState {
    @Override
    public void handle(AgriculturalMachine machine) {
        System.out.println(machine.getMachineType() + " " + machine.getId() + " 正在工作中...");
    }

    @Override
    public String getStateName() {
        return "工作状态";
    }
}